package me.yangxy.learning.api.vo;

import java.io.Serializable;

/**
 * 提供给外部系统使用的VO，不允许有任何和内部系统有关的引用
 */
public class Book implements Serializable {

    private static final long serialVersionUID = 3019626495169279002L;

    private Long bookId;
    private String bookTitle;
    private Integer bookPrice;
    private String bookType;

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public String getBookTitle() {
        return bookTitle;
    }

    public void setBookTitle(String bookTitle) {
        this.bookTitle = bookTitle;
    }

    public Integer getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Integer bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getBookType() {
        return bookType;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookTitle='" + bookTitle + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookType='" + bookType + '\'' +
                '}';
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }
}
